From: Philipp Stephani Date: Wed, 2 Jan 2019 17:56:49 +0000 (+0100) Subject: Avoid a compiler warning on macOS. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~4265 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f136a4bf7c65894acbf491cad8d5298662ba4cd1;p=emacs.git Avoid a compiler warning on macOS. * src/xdisp.c (expose_window_tree): Define variable f only if used. --- diff --git a/src/xdisp.c b/src/xdisp.c index f6f75f321c4..8b091c81bef 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -32390,7 +32390,9 @@ expose_window (struct window *w, XRectangle *fr) static bool expose_window_tree (struct window *w, XRectangle *r) { +#ifndef HAVE_NS struct frame *f = XFRAME (w->frame); +#endif bool mouse_face_overwritten_p = false; /* NS toolkits may have aleady modified the frame in expectation of